import { CategoryPrimaryItem } from "@/types/category";
import { httpRequest } from "@/utils/http";

// 获取分类列表
export const getCategoryDataAPI = () => {
    return httpRequest<CategoryPrimaryItem[]>({
        method: 'GET',
        url: '/category/top',
    });
};